//
//  LYBar.h
//  LYTabbarDemo
//
//  Created by 刘宇 on 16/6/23.
//  Copyright © 2016年 liuyu. All rights reserved.
//

#import <UIKit/UIKit.h>

#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
/**
 中间按钮样式
 */

typedef NS_ENUM(NSInteger, LYCenterButtonStyle) {
    LYCenterButtonStyleDefault  = 0 ,
    LYCenterButtonStyleBulge     ,
    LYCenterButtonStyleNOBulge
};

@class LYBar;
@protocol LYBarDelegate <UITabBarDelegate>

@optional
- (void)tabBar:(LYBar   *)tabBar DidClickCenterButton:(UIButton *)centerButton;

@end

@interface LYBar : UITabBar
@property (nonatomic, assign) id<LYBarDelegate> delegateCustom;

@property (nonatomic, strong) UIButton *centerButton;
@property (nonatomic, assign) LYCenterButtonStyle centerButtonStyle;
@property (nonatomic, assign) NSInteger tabbarButtonCount;
/**
 *  中间按钮位置偏移量 0~1，值越小垂直位置越靠上，值越大垂直位置越靠下
 */
@property (nonatomic, assign) CGFloat centerButtonOffset;
@end
